package main;

import java.awt.Point;

public class PointSensorPair {

	public Point point;
	public Sensor sensor;
	
	private static final int sonarDistance = 180;
	private static final int IRDistance = 80;
	
	public PointSensorPair(Sensor s) {
		sensor = s;
		if (s.sonar) {
			point = new Point((int) (sonarDistance*Math.sin(s.offset)), (int) (sonarDistance*Math.cos(s.offset)));
		} else {
			point = new Point((int) (IRDistance*Math.sin(s.offset)), (int) (IRDistance*Math.cos(s.offset)));
		}
	}
}
